<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script>
var arr=['float','width','alpha','zoom','left'];
var obb=[23,98,12,11,133,45];
//arr.push(1);尾部添加
//arr.unshift(7);首部添加
//arr.pop();尾部删除
//arr.shift();首部删 除
//arr.splice(2,2,'a','b','c','d','e');随意插入，删除，替换
//b=arr.concat(obb);
//arr.sort();
obb.sort(function(n1,n2)
		{
			if(n1>n2)
			{
				return -1;
			}
			else if(n1<n2)
			{
				return 1;
			}
			else
			{
				return 0;
			}
});
//alert(obb);

</script>
</head>

<body>

<div id="div2"></div>
<div id="div1"></div>
</body>
<style>
#div1{width:50px;height:50px;background:red;float:left; position:absolute;left:250px;}
#div2{width:200px;height:200px;background:blue;float:left;}
</style>
</html>
